<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>User Registration</title>
        <LINK REL=StyleSheet HREF="<?php echo base_url().'/css/mockup.css';?>"/>
    </head>
    <body>
        <h1>User Registration</h1>
        <?php echo form_open('client_controller/user_reg', array('id' => 'user_reg')); ?>
        <table align="center" cellspacing="10" cellpadding="0" width="900">
            <?php if (isset($status)) { 
                    if ($status === 'error') { ?>
                <tr>
                    <td colspan="2" align="center"><span style="color: red"><?php echo $message ?></span></td>
                </tr>
            <?php }else{
                if ($status === 'ok'){?>
                    <tr>
                        <td colspan="2" align="center"><span style="color: blue"><?php echo $message ?></span></td>
                    </tr>
                <?php }
            }} ?>
            <tr>
                <td>
                    Username:
                </td>
                <td>
                    <input type="text" name="username" value="<?php echo set_value('username'); ?>" maxlength="30" tabindex="1" />
                    <span style="color: red"><?php echo form_error('username'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    <input type="password" name="password" value="<?php echo set_value('password'); ?>" maxlength="30" tabindex="2" />
                    <span style="color: red"><?php echo form_error('password'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Password Confirmation:
                </td>
                <td>
                    <input type="password" name="password_confirmation" value="<?php echo set_value('password_confirmation'); ?>" maxlength="30" tabindex="3" />
                    <span style="color: red"><?php echo form_error('password_confirmation'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Email:
                </td>
                <td>
                    <input type="text" name="email" value="<?php echo set_value('email'); ?>" maxlength="90" tabindex="4" />
                    <span style="color: red"><?php echo form_error('email'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    First Name:
                </td>
                <td>
                    <input type="text" name="firstname" value="<?php echo set_value('firstname'); ?>" maxlength="30" tabindex="5" />
                    <span style="color: red"><?php echo form_error('firstname'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Second Name:
                </td>
                <td>
                    <input type="text" name="secondname" value="<?php echo set_value('secondname'); ?>" maxlength="30" tabindex="6" />
                    <span style="color: red"><?php echo form_error('secondname'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    First Last Name:
                </td>
                <td>
                    <input type="text" name="lastname1" value="<?php echo set_value('lastname1'); ?>" maxlength="30" tabindex="7" />
                    <span style="color: red"><?php echo form_error('lastname1'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Second Last Name:
                </td>
                <td>
                    <input type="text" name="lastname2" value="<?php echo set_value('lastname2'); ?>" maxlength="30" tabindex="8" />
                    <span style="color: red"><?php echo form_error('lastname2'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    ID Number:
                </td>
                <td>
                    <input type="text" name="id_number" value="<?php echo set_value('id_number'); ?>" maxlength="30" tabindex="9" />
                    <span style="color: red"><?php echo form_error('id_number'); ?></span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" name="submit" value="Register" tabindex="10" />
                </td>
            </tr>
            <tr>
                <td>
                    <h2><a href="<?php echo site_url().'/client_controller/login';?>">To Login...</a></h2>
                </td>
            </tr>
        </table>
        <?php echo form_close(); ?>
        
        
    </body>
</html>
